package com.j2eefast.flowable.bpm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.j2eefast.common.core.base.entity.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 投标（履约）保证金、招标代理费申请表
 * bpm_bid_agency
 * @author: Summer
 * @date 2021-02-24 22:00
 */
@Data
@TableName("bpm_bid_agency")
public class BpmBidAgencyEntity extends BaseEntity{

    /** 主键 */
    @TableId(value = "id",type = IdType.INPUT)
    private String id;

    /**流程实例ID*/
    @TableField(value = "process_instance_id")
    private String processInstanceId;

    /** 标题 */
    @TableField(value = "title")
    private String title;

    /** 优先级 */
    @TableField(value = "priority")
    private String priority;

    /** 附言文本 */
    @TableField(value = "attachment_text")
    private String attachmentText;

    /** 附言链接，废弃 */
    @TableField(value = "attachment_url")
    private String attachmentUrl;

    /** 流程表单ID */
    @TableField(value = "form_id")
    private String formId;


    /** 项目ID */
    @TableField(value = "project_id")
    private String projectId;

    /** 项目经理 */
    @TableField(value = "project_admin")
    private String projectAdmin; //项目经理

    /** 项目所属部门 */
    @TableField(value = "project_dept")
    private String projectDept;  //项目所属部门

    /** 项目名称 */
    @TableField(value = "project_name")
    private String projectName; //项目名称

    /** 委托单位 */
    @TableField(value = "client_company")
    private String clientCompany; //委托单位

    /** 是否中标 */
    @TableField(value = "is_bided")
    private String isBided; //是否中标

    /** 中标金额(元) */
    @TableField(value = "bided_amount")
    private String bidedAmount; //中标金额(元)

    /** 投标保证金来源 */
    @TableField(value = "deposit_from")
    private String depositFrom; //投标保证金来源

    /** 投标保证金金额 */
    @TableField(value = "deposit_amount")
    private String depositAmount; //投标保证金金额

    /** 上传中标通知书名字 */
    @TableField(value = "bided_notice_name")
    private String bidedNoticeName; //上传中标通知书名字

    /** 上传中标通知书地址 */
    @TableField(value = "bided_notice_url")
    private String bidedNoticeUrl; //上传中标通知书地址

    /** 处理意见 */
    @TableField(value = "opinion")
    private String opinion; //处理意见

    /** 状态，目前没有什么用 */
    @TableField(value = "status")
    private String status = "0";

    @TableField(value = "create_by")
    private String createBy;

    @TableField(value = "update_by")
    private String updateBy;

    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private Date updateTime;

    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private Date createTime;

    /** 备注 */
    @TableField(value = "remark")
    private String remark;

    /** 所有者ID */
    @TableField(value = "user_id")
    private String userId;

    @TableField(exist = false)
    private String formName;

    @TableField(value = "model_key")
    private String modelKey;
    //流水号
    @TableField(value = "serial_number")
    private String serialNumber;

    //投标保证金
    @TableField(value = "security")
    private BigDecimal security;

    //金额
    @TableField(value = "amount")
    private BigDecimal amount;

    //单位账户全称
    @TableField(value = "full_name")
    private BigDecimal fullName;

    //账号
    @TableField(value = "account")
    private BigDecimal account;

    //开户行
    @TableField(value = "bank")
    private BigDecimal bank;

    //投标截止时间
    @TableField(value = "bid_deadline")
    private Date bidDeadline;

    //投标备注
    @TableField(value = "bid_remarks")
    private String bidRemarks;






}
